package Practice16;

import java.io.FileNotFoundException;


public class TryCatchDemo {
    public static void main(String[] args) {
        try {
            read("a.bx");
        } catch (FileNotFoundException e) {
            System.out.println(e);
        } finally {
            System.out.println("不管程序怎么样 都会执行到这里");
        }
        System.out.println("over");
    }

    public static void read(String path) throws FileNotFoundException{
        if(!path.equals("v.sf")){
            throw new FileNotFoundException("v.sf 文件不存在");
        }
    }
}
